package com.vertx;

import com.vertx.verticles.*;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;

/**
 * @name: Application
 * @description: Application
 * @author: jiangcs
 */
public class Application {
    public static void main(String[] args) {
        Vertx vertx = Vertx.vertx();

//        vertx.deployVerticle(new MyVerticle());

//        DeploymentOptions deploymentOptions = new DeploymentOptions();
//        JsonObject config = new JsonObject();
//        config.put("name", "ceshi");
//        deploymentOptions.setConfig(config);
//        vertx.deployVerticle(new YourVerticle(), deploymentOptions);

//        vertx.deployVerticle(new OtherVerticle());

//        vertx.deployVerticle(new MongoVerticle());

        vertx.deployVerticle(new RedisVerticle());
    }
}
